import java.text.Normalizer;

class TratarStringLowerCodec
{
	static encode =
	{
		str ->
        str = str.trim()
  		str = str.replaceAll(" ","_");  
		str = Normalizer.normalize(str, Normalizer.Form.NFD);  
		str = str.replaceAll("[^\\p{ASCII}]", "");
		str = str.toLowerCase()         
        return str
	}
}